﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls">

    <!--BEGIN VERTICAL SCROLLBAR-->
    <!--BEGIN BUTTON UP-->
    <Style x:Key="ControlVerticalScrollBarButtonUp" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Grid Background="Transparent">
                        <Path x:Name="ArrowDesign" Width="10" Height="5.96875" Canvas.Left="397" Canvas.Top="274.388" Stretch="Fill" StrokeMiterLimit="2.75" Stroke="{DynamicResource BrushScrollBarArrowBorder}" Fill="{DynamicResource BrushVerticalScrollBarArrowUp}" Data="{DynamicResource IconVerticalScrollBarArrowUp}"></Path>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderHover}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarArrowUpHover}" TargetName="ArrowDesign"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderPressed}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarArrowUpPressed}" TargetName="ArrowDesign"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderDisabled}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarArrowUpDisabled}" TargetName="ArrowDesign"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END BUTTON UP-->

    <!--BEGIN BUTTON DOWN-->
    <Style x:Key="ControlVerticalScrollBarButtonDown" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Grid Background="Transparent">
                        <Path x:Name="ArrowDesign" Width="10" Height="5.96875" Canvas.Left="394.498" Canvas.Top="312.138" Stretch="Fill" StrokeMiterLimit="2.75" Stroke="{DynamicResource BrushScrollBarArrowBorder}" Data="{DynamicResource IconVerticalScrollBarArrowDown}" Fill="{DynamicResource BrushVerticalScrollBarArrowDown}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderHover}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarArrowDownHover}" TargetName="ArrowDesign"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderPressed}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarArrowDownPressed}" TargetName="ArrowDesign"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderDisabled}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarArrowDownDisabled}" TargetName="ArrowDesign"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END BUTTON DOWN-->

    <!--BEGIN VERTICAL PAGE BUTTON-->
    <Style x:Key="ControlVerticalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Grid Background="Transparent">
                        <Path x:Name="PageButton"  Width="0.809" Height="{TemplateBinding Height}" Stretch="Fill" StrokeThickness="1" StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Bevel" Stroke="{DynamicResource BrushScrollBarThumbBorder}" Fill="{DynamicResource BrushScrollBarPageButtonBackground}" Data="{DynamicResource IconScrollBarPageButton}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderPressed}" TargetName="PageButton"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushScrollBarPageButtonBackgroundPressed}" TargetName="PageButton"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderDisabled}" TargetName="PageButton"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushScrollBarPageButtonBackgroundDisabled}" TargetName="PageButton"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END VERTICAL PAGE BUTTON-->

    <!--BEGIN VERTICAL THUMB-->
    <Style x:Key="ControlVerticalScrollBarThumb" TargetType="{x:Type Thumb}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Rectangle x:Name="Thumb" Width="7" Height="{TemplateBinding Height}" Canvas.Left="391.249" Canvas.Top="290.25" Stretch="Fill" StrokeLineJoin="Round" Stroke="{DynamicResource BrushScrollBarThumbBorder}" RadiusX="2" RadiusY="2" Fill="{DynamicResource BrushVerticalScrollBarThumbBackground}"/>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarThumbBorderHover}" TargetName="Thumb"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarThumbBackgroundHover}" TargetName="Thumb"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarThumbBorderPressed}" TargetName="Thumb"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarThumbBackgroundPressed}" TargetName="Thumb"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarThumbBorderDisabled}" TargetName="Thumb"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarThumbBackgroundDisabled}" TargetName="Thumb"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END VERTICAL THUMB-->

    <!--BEGIN VERTICAL SCROLLBAR TEMPLATE-->
    <Style TargetType="{x:Type Controls:SinacorVerticalScrollBar}">
        <Setter Property="Width" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
        <Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:SinacorVerticalScrollBar}">
                    <Grid SnapsToDevicePixels="true" Background="{x:Null}">
                        <Grid.RowDefinitions>
                            <RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
                            <RowDefinition Height="0.00001*"/>
                            <RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
                        </Grid.RowDefinitions>
                        <RepeatButton Style="{StaticResource ControlVerticalScrollBarButtonUp}" Command="{x:Static ScrollBar.LineUpCommand}"/>
                        <Track x:Name="PART_Track" Grid.Row="1" IsDirectionReversed="true">
                            <Track.DecreaseRepeatButton>
                                <RepeatButton Style="{StaticResource ControlVerticalScrollBarPageButton}" Command="{x:Static ScrollBar.PageUpCommand}"/>
                            </Track.DecreaseRepeatButton>
                            <Track.Thumb>
                                <Thumb Style="{StaticResource ControlVerticalScrollBarThumb}"/>
                            </Track.Thumb>
                            <Track.IncreaseRepeatButton>
                                <RepeatButton Style="{StaticResource ControlVerticalScrollBarPageButton}" Command="{x:Static ScrollBar.PageDownCommand}"/>
                            </Track.IncreaseRepeatButton>
                        </Track>
                        <RepeatButton Style="{StaticResource ControlVerticalScrollBarButtonDown}" Grid.Row="2" Command="{x:Static ScrollBar.LineDownCommand}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END VERTICAL SCROLLBAR TEMPLATE-->
    <!--END VERTICAL SCROLLBAR-->


    <!--BEGIN HORIZONTAL SCROLLBAR-->
    <!--BEGIN BUTTON LEFT-->
    <Style x:Key="ControlHorizontalScrollBarButtonLeft" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Grid Background="Transparent">
                        <Path x:Name="ArrowDesign" Width="5.96875" Height="10" Canvas.Left="375.392" Canvas.Top="293" Stretch="Fill" StrokeMiterLimit="2.75" Stroke="{DynamicResource BrushScrollBarArrowBorder}" Data="{DynamicResource IconHorizontalScrollBarArrowLeft}" Fill="{DynamicResource BrushHorizontalScrollBarArrowLeft}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderHover}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushHorizontalScrollBarArrowLeftHover}" TargetName="ArrowDesign"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderPressed}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushHorizontalScrollBarArrowLeftPressed}" TargetName="ArrowDesign"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderDisabled}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushHorizontalScrollBarArrowLeftDisabled}" TargetName="ArrowDesign"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END BUTTON LEFT-->

    <!--BEGIN BUTTON RIGHT-->
    <Style x:Key="ControlHorizontalScrollBarButtonRight" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Grid Background="Transparent">
                        <Path x:Name="ArrowDesign" Width="5.96875" Height="10" Canvas.Left="418.514" Canvas.Top="292.627" Stretch="Fill" StrokeMiterLimit="2.75" Stroke="{DynamicResource BrushScrollBarArrowBorder}" Data="{DynamicResource IconHorizontalScrollBarArrowRight}" Fill="{DynamicResource BrushHorizontalScrollBarArrowRight}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderHover}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushHorizontalScrollBarArrowRightHover}" TargetName="ArrowDesign"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderPressed}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushHorizontalScrollBarArrowRightPressed}" TargetName="ArrowDesign"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderDisabled}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushHorizontalScrollBarArrowRightDisabled}" TargetName="ArrowDesign"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END BUTTON RIGHT-->

    <!--BEGIN PAGE BUTTON-->
    <Style x:Key="ControlHorizontalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Grid Background="Transparent">
                        <Path x:Name="PageButton" Width="{TemplateBinding Width}" Height="0.809" Stretch="Fill" StrokeThickness="1" StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Bevel" Stroke="{DynamicResource BrushScrollBarThumbBorder}" Fill="{DynamicResource BrushScrollBarPageButtonBackground}" Data="{DynamicResource IconScrollBarPageButton}" RenderTransformOrigin="0.5,0.5"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderPressed}" TargetName="PageButton"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushScrollBarPageButtonBackgroundPressed}" TargetName="PageButton"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderDisabled}" TargetName="PageButton"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushScrollBarPageButtonBackgroundDisabled}" TargetName="PageButton"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END PAGE BUTTON-->

    <!--BEGIN HORIZONTAL THUMB-->
    <Style x:Key="ControlHorizontalScrollBarThumb" TargetType="{x:Type Thumb}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Rectangle x:Name="Thumb" Width="{TemplateBinding Width}" Height="7" Canvas.Left="401.397" Canvas.Top="293.5" Stretch="Fill" StrokeLineJoin="Round" Stroke="{DynamicResource BrushScrollBarThumbBorder}" RadiusX="2" RadiusY="2" Fill="{DynamicResource BrushHorizontalScrollBarThumbBackground}"/>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarThumbBorderHover}" TargetName="Thumb"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushHorizontalScrollBarThumbBackgroundHover}" TargetName="Thumb"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarThumbBorderPressed}" TargetName="Thumb"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushHorizontalScrollBarThumbBackgroundPressed}" TargetName="Thumb"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarThumbBorderDisabled}" TargetName="Thumb"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushHorizontalScrollBarThumbBackgroundDisabled}" TargetName="Thumb"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END HORIZONTAL THUMB-->

    <!--BEGIN HORIZONTAL SCROLLBAR TEMPLATE-->
    <Style TargetType="{x:Type Controls:SinacorHorizontalScrollBar}">
        <Setter Property="Height" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
        <Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:SinacorHorizontalScrollBar}">
                    <Grid SnapsToDevicePixels="true" Background="{x:Null}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
                            <ColumnDefinition Width="0.00001*"/>
                            <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
                        </Grid.ColumnDefinitions>
                        <RepeatButton Style="{StaticResource ControlHorizontalScrollBarButtonLeft}" Command="{x:Static ScrollBar.LineLeftCommand}" />
                        <Track x:Name="PART_Track" Grid.Column="1">
                            <Track.DecreaseRepeatButton>
                                <RepeatButton Style="{StaticResource ControlHorizontalScrollBarPageButton}" Command="{x:Static ScrollBar.PageLeftCommand}"/>
                            </Track.DecreaseRepeatButton>
                            <Track.Thumb>
                                <Thumb Style="{StaticResource ControlHorizontalScrollBarThumb}"/>
                            </Track.Thumb>
                            <Track.IncreaseRepeatButton>
                                <RepeatButton Style="{StaticResource ControlHorizontalScrollBarPageButton}" Command="{x:Static ScrollBar.PageRightCommand}"/>
                            </Track.IncreaseRepeatButton>
                        </Track>
                        <RepeatButton Style="{StaticResource ControlHorizontalScrollBarButtonRight}" Grid.Column="2" Command="{x:Static ScrollBar.LineRightCommand}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END HORIZONTAL SCROLLBAR TEMPLATE-->
    <!--END HORIZONTAL SCROLLBAR-->


    <!--BEGIN SCROLLVIEWER-->
    <Style TargetType="{x:Type Controls:SinacorScrollViewer}">
        <Setter Property="Width" Value="200" />
        <Setter Property="Height" Value="200" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:SinacorScrollViewer}">
                    <Grid x:Name="Grid" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Rectangle Fill="Transparent" x:Name="Corner" Grid.Column="1" Grid.Row="1"/>
                        <ScrollContentPresenter Margin="{TemplateBinding Padding}" x:Name="PART_ScrollContentPresenter" Grid.Column="0" Grid.Row="0" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False"/>
                        <!--<ScrollBar Cursor="Arrow" x:Name="PART_VerticalScrollBar" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" Grid.Column="1" Grid.Row="0" AutomationProperties.AutomationId="VerticalScrollBar" Style="{DynamicResource ControlVerticalScrollBarTemplate}"/>
						<ScrollBar Cursor="Arrow" x:Name="PART_HorizontalScrollBar" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" Grid.Column="0" Grid.Row="1" AutomationProperties.AutomationId="HorizontalScrollBar" Style="{DynamicResource ControlHorizontalScrollBarTemplate}"/>-->
                        <Controls:SinacorVerticalScrollBar Cursor="Arrow" x:Name="PART_VerticalScrollBar" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" Grid.Column="1" Grid.Row="0" AutomationProperties.AutomationId="VerticalScrollBar"/>
                        <Controls:SinacorHorizontalScrollBar Cursor="Arrow" x:Name="PART_HorizontalScrollBar" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" Grid.Column="0" Grid.Row="1" AutomationProperties.AutomationId="HorizontalScrollBar"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END SCROLLVIEWER-->
</ResourceDictionary>